/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Client.domain;

import Client.gui.Drawable;
import Client.persistence.TileLibrary;
import java.awt.image.BufferedImage;

/**
 *
 * @author Ripper
 */
public class ClientTile implements Drawable
{
    private double x;
    private double y;
    
    private BufferedImage img;
    
    public ClientTile(ClientGameSession cgs, int id, double xx, double yy, int forcedSize)
    {
        x = xx;
        y = yy;
        
        img = TileLibrary.getImageForID(cgs.getCdc(),id, forcedSize);
    }

    @Override
    public BufferedImage getImageToDraw() {
        return img;
    }

    @Override
    public BufferedImage getImageToDrawWhenSelecting() {
        return img;
    }

    @Override
    public double getX() {
        return x;
    }

    @Override
    public double getY() {
        return y;
    }

    @Override
    public int getHpprct() {
        return -1;
    }

    @Override
    public String getName() {
        return "";
    }
    
    @Override
    public double getRotation()
    {
        return 0;
    }
}
